#include    <iostream>
#include    <fstream>
#include    <string>
#include    "Menu.hh"

// Constructeur et desttructeur

Menu::Menu()
{
    std::ifstream _file("./resources/ascii_and_name.txt", std::ios::in);

    if(!_file)
        std::cerr << "Error : Failed to open \"./resources/ascii_and_name.txt\"" << std::endl;
    std::string  buf;
    while(getline(_file, buf))
    {
        this->ascii_menu += buf;
        this->ascii_menu += "\n";
    }
    this->ascii_menu += "\n";
}

Menu::~Menu() { }

// Methodes

std::string            Menu::get_menu()
{
    return (this->ascii_menu);
}
